package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 交易信息对象 ticket_trans
 *
 * @author ruoyi
 * @date 2024-07-15
 */
public class TicketTrans extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 交易编号 */
    @Excel(name = "交易编号",prompt = "不需要填写则自动生成")
    private String transNo;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date transDate;

    /** 交易地址 */
    @Excel(name = "交易地址")
    private String transAddr;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private String transAmount;

    /** 交易名称 */
    @Excel(name = "交易名称")
    private String transName;

    /** 客户编号 */
    @Excel(name = "客户编号")
    private String transCustomerNo;

    /** 交易商户编号 */
    @Excel(name = "交易商户编号")
    private String transBusinessNo;

    /**
     * 票据图片地址
     */
    @Excel(name = "票据图片地址")
    private String imgContent;

    public void setTransNo(String transNo)
    {
        this.transNo = transNo;
    }

    public void setImgContent(String imgContent) {
        this.imgContent = imgContent;
    }

    public String getImgContent() {
        return imgContent;
    }

    public String getTransNo()
    {
        return transNo;
    }
    public void setTransDate(Date transDate)
    {
        this.transDate = transDate;
    }

    public Date getTransDate()
    {
        return transDate;
    }
    public void setTransAddr(String transAddr)
    {
        this.transAddr = transAddr;
    }

    public String getTransAddr()
    {
        return transAddr;
    }
    public void setTransAmount(String transAmount)
    {
        this.transAmount = transAmount;
    }

    public String getTransAmount()
    {
        return transAmount;
    }
    public void setTransName(String transName)
    {
        this.transName = transName;
    }

    public String getTransName()
    {
        return transName;
    }
    public void setTransCustomerNo(String transCustomerNo)
    {
        this.transCustomerNo = transCustomerNo;
    }

    public String getTransCustomerNo()
    {
        return transCustomerNo;
    }
    public void setTransBusinessNo(String transBusinessNo)
    {
        this.transBusinessNo = transBusinessNo;
    }

    public String getTransBusinessNo()
    {
        return transBusinessNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("transNo", getTransNo())
                .append("transDate", getTransDate())
                .append("transAddr", getTransAddr())
                .append("transAmount", getTransAmount())
                .append("transName", getTransName())
                .append("transCustomerNo", getTransCustomerNo())
                .append("transBusinessNo", getTransBusinessNo())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("imgContent", getImgContent())
                .toString();
    }
}
